home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / xcmd / sprtxtrn.sea / Support Tools eXternals 1.2.5 / card_40945.txt < prev    next >
Text File  |  1990-11-13  |  1KB  |  25 lines

  1. -- card: 40945 from stack: in.5
  2. -- bmap block id: 11549
  3. -- flags: 0000
  4. -- background id: 3858
  5. -- name: SetDefaultDir
  6. ----- HyperTalk script -----
  7. on hideObjects
  8. end hideObjects
  9.  
  10. on showObjects
  11. end showObjects
  12.  
  13.  
  14. -- part contents for background part 38
  15. ----- text -----
  16. 42/50
  17.  
  18. -- part contents for background part 20
  19. ----- text -----
  20. SetDefaultDir - An XFCN to set the current default directory.
  21.  
  22. SetDefaultDir(pathname, <"noDialog:"errorGlobal>)
  23.  
  24. This XFCN will, as its name hints, set the default directory to the pathname specified in parameter 1.  The default directory is the directory that a standard file dialog shows when it first appears.  It is useful if, for example, you launch an application from HyperCard.  By calling this XFCN before you call open, the application will open any new standard file dialogs to the folder you specified.  For example both of the Think language environments open with dialogs asking you to locate the project file you wish to work with.  By setting the default directory to the folder Think Pascal or Think C resides in, the user is prevented from having to spend a lot of time looking for the Think Pascal folder on a large volume.
  25.